﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002B9 RID: 697
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueStartScRsp : IMessage<ChessRogueStartScRsp>, IMessage, IEquatable<ChessRogueStartScRsp>, IDeepCloneable<ChessRogueStartScRsp>, IBufferMessage
	{
		// Token: 0x17000911 RID: 2321
		// (get) Token: 0x06001F3C RID: 7996 RVA: 0x00058E4F File Offset: 0x0005704F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueStartScRsp> Parser
		{
			get
			{
				return ChessRogueStartScRsp._parser;
			}
		}

		// Token: 0x17000912 RID: 2322
		// (get) Token: 0x06001F3D RID: 7997 RVA: 0x00058E56 File Offset: 0x00057056
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueStartScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000913 RID: 2323
		// (get) Token: 0x06001F3E RID: 7998 RVA: 0x00058E68 File Offset: 0x00057068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueStartScRsp.Descriptor;
			}
		}

		// Token: 0x06001F3F RID: 7999 RVA: 0x00058E6F File Offset: 0x0005706F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartScRsp()
		{
		}

		// Token: 0x06001F40 RID: 8000 RVA: 0x00058E78 File Offset: 0x00057078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartScRsp(ChessRogueStartScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.rogueCurrentInfo_ = ((other.rogueCurrentInfo_ != null) ? other.rogueCurrentInfo_.Clone() : null);
			this.boardEventInfo_ = ((other.boardEventInfo_ != null) ? other.boardEventInfo_.Clone() : null);
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001F41 RID: 8001 RVA: 0x00058F50 File Offset: 0x00057150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartScRsp Clone()
		{
			return new ChessRogueStartScRsp(this);
		}

		// Token: 0x17000914 RID: 2324
		// (get) Token: 0x06001F42 RID: 8002 RVA: 0x00058F58 File Offset: 0x00057158
		// (set) Token: 0x06001F43 RID: 8003 RVA: 0x00058F60 File Offset: 0x00057160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000915 RID: 2325
		// (get) Token: 0x06001F44 RID: 8004 RVA: 0x00058F69 File Offset: 0x00057169
		// (set) Token: 0x06001F45 RID: 8005 RVA: 0x00058F71 File Offset: 0x00057171
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17000916 RID: 2326
		// (get) Token: 0x06001F46 RID: 8006 RVA: 0x00058F7A File Offset: 0x0005717A
		// (set) Token: 0x06001F47 RID: 8007 RVA: 0x00058F82 File Offset: 0x00057182
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x17000917 RID: 2327
		// (get) Token: 0x06001F48 RID: 8008 RVA: 0x00058F8B File Offset: 0x0005718B
		// (set) Token: 0x06001F49 RID: 8009 RVA: 0x00058F93 File Offset: 0x00057193
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo RogueCurrentInfo
		{
			get
			{
				return this.rogueCurrentInfo_;
			}
			set
			{
				this.rogueCurrentInfo_ = value;
			}
		}

		// Token: 0x17000918 RID: 2328
		// (get) Token: 0x06001F4A RID: 8010 RVA: 0x00058F9C File Offset: 0x0005719C
		// (set) Token: 0x06001F4B RID: 8011 RVA: 0x00058FA4 File Offset: 0x000571A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerInitialEventInfo BoardEventInfo
		{
			get
			{
				return this.boardEventInfo_;
			}
			set
			{
				this.boardEventInfo_ = value;
			}
		}

		// Token: 0x17000919 RID: 2329
		// (get) Token: 0x06001F4C RID: 8012 RVA: 0x00058FAD File Offset: 0x000571AD
		// (set) Token: 0x06001F4D RID: 8013 RVA: 0x00058FB5 File Offset: 0x000571B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGameInfo Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x1700091A RID: 2330
		// (get) Token: 0x06001F4E RID: 8014 RVA: 0x00058FBE File Offset: 0x000571BE
		// (set) Token: 0x06001F4F RID: 8015 RVA: 0x00058FC6 File Offset: 0x000571C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x06001F50 RID: 8016 RVA: 0x00058FCF File Offset: 0x000571CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueStartScRsp);
		}

		// Token: 0x06001F51 RID: 8017 RVA: 0x00058FE0 File Offset: 0x000571E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueStartScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Scene, other.Scene) && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.RogueCurrentInfo, other.RogueCurrentInfo) && object.Equals(this.BoardEventInfo, other.BoardEventInfo) && object.Equals(this.Info, other.Info) && object.Equals(this.Lineup, other.Lineup) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001F52 RID: 8018 RVA: 0x00059098 File Offset: 0x00057298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num ^= this.RogueCurrentInfo.GetHashCode();
			}
			if (this.boardEventInfo_ != null)
			{
				num ^= this.BoardEventInfo.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001F53 RID: 8019 RVA: 0x0005915B File Offset: 0x0005735B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001F54 RID: 8020 RVA: 0x00059163 File Offset: 0x00057363
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001F55 RID: 8021 RVA: 0x0005916C File Offset: 0x0005736C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.StageInfo);
			}
			if (this.info_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Info);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Lineup);
			}
			if (this.boardEventInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.BoardEventInfo);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.Scene);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.RogueCurrentInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001F56 RID: 8022 RVA: 0x00059254 File Offset: 0x00057454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueCurrentInfo);
			}
			if (this.boardEventInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BoardEventInfo);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001F57 RID: 8023 RVA: 0x00059324 File Offset: 0x00057524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueStartScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.rogueCurrentInfo_ != null)
			{
				if (this.rogueCurrentInfo_ == null)
				{
					this.RogueCurrentInfo = new ChessRogueCurrentInfo();
				}
				this.RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo);
			}
			if (other.boardEventInfo_ != null)
			{
				if (this.boardEventInfo_ == null)
				{
					this.BoardEventInfo = new ChessRogueLayerInitialEventInfo();
				}
				this.BoardEventInfo.MergeFrom(other.BoardEventInfo);
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new ChessRogueGameInfo();
				}
				this.Info.MergeFrom(other.Info);
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001F58 RID: 8024 RVA: 0x00059468 File Offset: 0x00057668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001F59 RID: 8025 RVA: 0x00059474 File Offset: 0x00057674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 10U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
					if (num == 26U)
					{
						if (this.info_ == null)
						{
							this.Info = new ChessRogueGameInfo();
						}
						input.ReadMessage(this.Info);
						continue;
					}
					if (num == 50U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
				}
				else if (num <= 98U)
				{
					if (num == 74U)
					{
						if (this.boardEventInfo_ == null)
						{
							this.BoardEventInfo = new ChessRogueLayerInitialEventInfo();
						}
						input.ReadMessage(this.BoardEventInfo);
						continue;
					}
					if (num == 98U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
				}
				else
				{
					if (num == 106U)
					{
						if (this.rogueCurrentInfo_ == null)
						{
							this.RogueCurrentInfo = new ChessRogueCurrentInfo();
						}
						input.ReadMessage(this.RogueCurrentInfo);
						continue;
					}
					if (num == 112U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000CD7 RID: 3287
		private static readonly MessageParser<ChessRogueStartScRsp> _parser = new MessageParser<ChessRogueStartScRsp>(() => new ChessRogueStartScRsp());

		// Token: 0x04000CD8 RID: 3288
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000CD9 RID: 3289
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04000CDA RID: 3290
		private uint retcode_;

		// Token: 0x04000CDB RID: 3291
		public const int SceneFieldNumber = 12;

		// Token: 0x04000CDC RID: 3292
		private SceneInfo scene_;

		// Token: 0x04000CDD RID: 3293
		public const int StageInfoFieldNumber = 1;

		// Token: 0x04000CDE RID: 3294
		private ChessRogueInfo stageInfo_;

		// Token: 0x04000CDF RID: 3295
		public const int RogueCurrentInfoFieldNumber = 13;

		// Token: 0x04000CE0 RID: 3296
		private ChessRogueCurrentInfo rogueCurrentInfo_;

		// Token: 0x04000CE1 RID: 3297
		public const int BoardEventInfoFieldNumber = 9;

		// Token: 0x04000CE2 RID: 3298
		private ChessRogueLayerInitialEventInfo boardEventInfo_;

		// Token: 0x04000CE3 RID: 3299
		public const int InfoFieldNumber = 3;

		// Token: 0x04000CE4 RID: 3300
		private ChessRogueGameInfo info_;

		// Token: 0x04000CE5 RID: 3301
		public const int LineupFieldNumber = 6;

		// Token: 0x04000CE6 RID: 3302
		private LineupInfo lineup_;
	}
}
